home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
ACK3D.ZIP
/
TRIG
/
TRIG.DOC
< prev
next >
Wrap
Text File
|
1993-08-24
|
2KB
|
44 lines
8/24/93 10:18 PM
In this archive you'll find a copy of TRIG.EXE and the Borland C++ v3.1
source to create the program. TRIG.EXE was written to regenerate the
TRIG.DAT file used by the ACK-3D engine. You can find a demo of ACK-3D
in this directory in the file: ACKDEM.ZIP.
The following is an excerpt from an e-mail message I sent to Lary Myers.
It explains how to run the program, and how it differs from the original
program used to generate the TRIG.DAT file:
--------------------
I'm uploading the program TRIG.EXE (with source) which I wrote to generate
new TRIG.DAT files. It can also reverse-engineer an existing TRIG.DAT into
a human-readable format so you can use it to compare your original TRIG.DAT
file to the files created by TRIG.EXE. By altering the way the loop
operates, I seem to have gotten rid of most of the rounding errors in the
tables. I've run ACK3D.EXE with all forms of the new tables, but it
doesn't seem to have sped up the program or fixed any problems
(WallDistance and yDistance still go negative in ACKENG.C). (Alas, I had
such high hopes...)
Anyhow, if you run TRIG.EXE with the -? option it will print a help screen
showing how to use it. To reverse-engineer TRIG.DAT into a readable
format, execute:
TRIG -r trig.dat >trig.txt
To build all new TRIG.DAT files, execute:
TRIG -bu trig.up
TRIG -bd trig.dn
TRIG -bi trig.in
TRIG -bo trig.out
TRIG.UP has all values rounded up towards higher values, TRIG.DN has all
values rounded down, TRIG.IN rounds all numbers in towards 0, and TRIG.OUT
rounds all numbers out away from 0. To use one of the new table files,
just copy it to TRIG.DAT. For example:
copy trig.dat trig.old
copy trig.out trig.dat
Then run ACK3D with the new tables in place.
--------------------
John Gaines, Jr.